<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <!--1.引入外部的vue.js-->
    <script src="./js/vue@3.3.4.global.js"></script>
</head>
<body>
    <!--2.view-->
    <div id="app">
        <h3>{{message}}</h3>
        <input type="text"  v-model="name">
        <p>{{name}}</p>
    </div>
</body>
<!--3.view-model-->
<script>
    const app = Vue.createApp({
        /*model*/
       data(){
           return{
                message: "hello vue3!",  /*变量，而且有值*/
                name: 'rose'
           }
       }
    });
    /*4.挂载*/
    app.mount('#app');
</script>
</html>